package com.example.his.api.mis.controller.form.rule;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class InsertRuleForm {
  @NotBlank(message = "name不能为空")
  @Pattern(regexp = "^[a-zA-Z0-9\\u4e00-\\u9fa5]{1,20}$", message = "name格式错误")
  private String name;
  
  @NotBlank(message = "rule不能为空")
  private String rule;
  
  private String remark;
  
}
